<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改债券线索')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-clue-edit" th:object="${crBondClue}">
        <input name="clueId" th:field="*{clueId}" type="hidden">
<!--        <div class="form-group">-->
<!--            <label class="col-sm-3 control-label">支付状态：</label>-->
<!--            <div class="col-sm-8">-->
<!--                <div class="radio-box" th:each="dict : ${@dict.getType('pay_status')}">-->
<!--                    <input type="radio" th:id="${'payStatus_' + dict.dictCode}" name="payStatus" th:value="${dict.dictValue}" th:field="*{payStatus}">-->
<!--                    <label th:for="${'payStatus_' + dict.dictCode}" th:text="${dict.dictLabel}"></label>-->
<!--                </div>-->
<!--            </div>-->
<!--        </div>-->
<!--        <div class="form-group">-->
<!--            <label class="col-sm-3 control-label">支付金额：</label>-->
<!--            <div class="col-sm-8">-->
<!--                <input name="payAmount" th:field="*{payAmount}" class="form-control" type="text">-->
<!--            </div>-->
<!--        </div>-->
        <div class="form-group">
            <label class="col-sm-3 control-label">审批状态：</label>
            <div class="col-sm-8">
                <div class="radio-box" th:each="dict : ${@dict.getType('approval_status')}">
                    <input type="radio" th:id="${'approvalStatus_' + dict.dictCode}" name="approvalStatus" th:value="${dict.dictValue}" th:field="*{approvalStatus}">
                    <label th:for="${'approvalStatus_' + dict.dictCode}" th:text="${dict.dictLabel}"></label>
                </div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">备注：</label>
            <div class="col-sm-8">
                <input name="rejectionReasons" th:field="*{rejectionReasons}" class="form-control" type="text">
            </div>
        </div>
<!--        <div class="form-group">-->
<!--            <label class="col-sm-3 control-label">审批时间：</label>-->
<!--            <div class="col-sm-8">-->
<!--                <div class="input-group date">-->
<!--                    <input name="approvalTime" th:value="${#dates.format(crBondClue.approvalTime, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">-->
<!--                    <span class="input-group-addon"><i class="fa fa-calendar"></i></span>-->
<!--                </div>-->
<!--            </div>-->
<!--        </div>-->
<!--        <div class="form-group">-->
<!--            <label class="col-sm-3 control-label">审批人：</label>-->
<!--            <div class="col-sm-8">-->
<!--                <input name="approver" th:field="*{approver}" class="form-control" type="text">-->
<!--            </div>-->
<!--        </div>-->

<!--        <div class="form-group">-->
<!--            <label class="col-sm-3 control-label">支付时间：</label>-->
<!--            <div class="col-sm-8">-->
<!--                <div class="input-group date">-->
<!--                    <input name="payTime" th:value="${#dates.format(crBondClue.payTime, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">-->
<!--                    <span class="input-group-addon"><i class="fa fa-calendar"></i></span>-->
<!--                </div>-->
<!--            </div>-->
<!--        </div>-->
    </form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: datetimepicker-js" />
<script th:inline="javascript">
    var prefix = ctx + "business/clue";
    $("#form-clue-edit").validate({
        focusCleanup: true
    });

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/audit", $('#form-clue-edit').serialize());
        }
    }

    $("input[name='approvalTime']").datetimepicker({
        format: "yyyy-mm-dd",
        minView: "month",
        autoclose: true
    });

    $("input[name='payTime']").datetimepicker({
        format: "yyyy-mm-dd",
        minView: "month",
        autoclose: true
    });
</script>
</body>
</html>